GBML manual / Constants

TEXT_BULGE

The middle of the line stays full size and both the top and the bottom shrink away - like text on a barrel.

Works differently on Game Boy - The Game Boy arches a text for TEXT_BULGE: the middle of the line stays where it was and the ends sit lower, more for a bigger depth; the letters are not narrowed (24 letters at most, drawn with sprites).

Works differently on Game Boy Color - The Game Boy Color arches a text for TEXT_BULGE: the middle of the line stays where it was and the ends sit lower, more for a bigger depth; the letters are not narrowed (24 letters at most, drawn with sprites).

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

TEXT_BULGE: constant

Description

Names the barrel shape, for draw_text_3d and draw_text_3d_anchored (and its scaled form, draw_text_3d_scaled): the middle of the line stays full size and both the top and the bottom of the letters shrink away, like text printed on a barrel.

A real capture - the flat words BIG BOSS, then the same words drawn with TEXT_BULGE at depth 2, 4 and 6: the deeper it goes, the more every letter is pinched to a point at its top and bottomA real capture - the flat words BIG BOSS, then the same words drawn with TEXT_BULGE at depth 2, 4 and 6: the deeper it goes, the more every letter is pinched to a point at its top and bottom
A real capture - the flat words BIG BOSS, then the same words drawn with TEXT_BULGE at depth 2, 4 and 6: the deeper it goes, the more every letter is pinched to a point at its top and bottom

Top: the same words with plain draw_text. Then TEXT_BULGE at depth 2, 4 and 6. Real pictures from a Game Boy Advance ROM.

A real capture, 12 frames played in a loop - the words BIG BOSS drawn with TEXT_BULGE while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the top and bottom of every letter are pinched almost to a point, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.A real capture, 12 frames played in a loop - the words BIG BOSS drawn with TEXT_BULGE while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the top and bottom of every letter are pinched almost to a point, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.
A real capture, 12 frames played in a loop - the words BIG BOSS drawn with TEXT_BULGE while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the top and bottom of every letter are pinched almost to a point, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.

The same call with only depth changing (the line under the picture says which depth): twelve real pictures played in a loop, each held for about a third of a second. The plain line under the curved one is draw_text and never changes. A viewer that does not animate shows the first frame, depth 4.

Depths 1 to 3 are gentle and depths 4 to 6 are the dramatic ones - read draw_text_3d for what each depth does and why the deep ones want a big, bold font.

Example

text_align(ALIGN_CENTER);
draw_text_3d(120, 80, "BIG BOSS", TEXT_BULGE, 4);

A word in the middle of the screen, pinched at the top and bottom of every letter like a barrel seen close up.

See also: draw_text_3ddraw_text_3d_scaled